/*     */ import java.awt.Container;
/*     */ import java.awt.Font;
/*     */ import java.awt.Insets;
/*     */ import java.awt.event.ActionEvent;
/*     */ import java.awt.event.ActionListener;
/*     */ import javax.swing.Box;
/*     */ import javax.swing.JButton;
/*     */ import javax.swing.JCheckBox;
/*     */ import javax.swing.JDialog;
/*     */ import javax.swing.JFrame;
/*     */ import javax.swing.JLabel;
/*     */ import javax.swing.JOptionPane;
/*     */ 
/*     */ public class Loader
/*     */   implements ActionListener
/*     */ {
/*  10 */   private Font ssp11 = new Font("Sanserif", 0, 11);
/*  11 */   private Font ssp12 = new Font("Sanserif", 1, 13);
/*     */   private JFrame frame;
/*  14 */   private Box dialogPanel = Box.createVerticalBox();
/*  15 */   private Box cbPanel = Box.createHorizontalBox();
/*  16 */   private Box buttonsPanel = Box.createHorizontalBox();
/*     */   private JCheckBox nseCB;
/*     */   private JCheckBox bseCB;
/*     */   private JButton startButton;
/*     */   private JButton cancelButton;
/*     */   private JDialog jd;
/*     */   public boolean nseOnly;
/*     */   public boolean bseOnly;
/*     */   public boolean nseBse;
/*     */ 
/*     */   public Loader()
/*     */   {
/*  27 */     this.frame = new JFrame("Market Analysis - Deebak");
/*  28 */     this.frame.setDefaultCloseOperation(3);
/*  29 */     this.frame.setResizable(false);
/*     */ 
/*  31 */     this.jd = new JDialog(this.frame, "ProfitIndicators V2.05", true);
/*  32 */     this.jd.setDefaultCloseOperation(2);
/*     */ 
/*  34 */     this.nseCB = new JCheckBox("NSE", true);
/*  35 */     this.bseCB = new JCheckBox("BSE", true);
/*  36 */     this.nseCB.setFont(this.ssp11);
/*  37 */     this.bseCB.setFont(this.ssp11);
/*     */ 
/*  39 */     this.startButton = new JButton("Start");
/*  40 */     this.startButton.setFont(this.ssp11);
/*  41 */     this.startButton.setMargin(new Insets(1, 2, 1, 2));
/*  42 */     this.startButton.addActionListener(this);
/*     */ 
/*  44 */     this.cancelButton = new JButton("Cancel");
/*  45 */     this.cancelButton.setFont(this.ssp11);
/*  46 */     this.cancelButton.setMargin(new Insets(1, 2, 1, 2));
/*  47 */     this.cancelButton.addActionListener(this);
/*     */ 
/*  50 */     this.cbPanel.add(Box.createHorizontalGlue());
/*  51 */     this.cbPanel.add(this.nseCB);
/*  52 */     this.cbPanel.add(Box.createHorizontalStrut(15));
/*  53 */     this.cbPanel.add(this.bseCB);
/*  54 */     this.cbPanel.add(Box.createHorizontalGlue());
/*     */ 
/*  57 */     this.buttonsPanel.add(Box.createHorizontalGlue());
/*  58 */     this.buttonsPanel.add(this.startButton);
/*  59 */     this.buttonsPanel.add(Box.createHorizontalStrut(15));
/*  60 */     this.buttonsPanel.add(this.cancelButton);
/*  61 */     this.buttonsPanel.add(Box.createHorizontalGlue());
/*     */ 
/*  63 */     JLabel localJLabel = new JLabel("Select Exchanges to load.");
/*  64 */     localJLabel.setFont(this.ssp12);
/*     */ 
/*  66 */     this.dialogPanel.add(Box.createVerticalStrut(15));
/*  67 */     this.dialogPanel.add(localJLabel);
/*  68 */     this.dialogPanel.add(Box.createVerticalStrut(15));
/*  69 */     this.dialogPanel.add(this.cbPanel);
/*  70 */     this.dialogPanel.add(Box.createVerticalStrut(15));
/*  71 */     this.dialogPanel.add(this.buttonsPanel);
/*  72 */     this.dialogPanel.add(Box.createVerticalGlue());
/*     */     try
/*     */     {
/*  76 */       this.jd.getContentPane().add(this.dialogPanel);
/*  77 */       this.jd.setSize(300, 160);
/*  78 */       this.jd.setLocationRelativeTo(null);
/*  79 */       this.jd.setVisible(true);
/*     */     }
/*     */     finally
/*     */     {
/*  84 */       this.frame.dispose();
/*     */     }
/*     */   }
/*     */ 
/*     */   public void actionPerformed(ActionEvent paramActionEvent)
/*     */   {
/*  92 */     if (paramActionEvent.getSource() == this.startButton)
/*     */     {
/*  94 */       if ((!this.nseCB.isSelected()) && (!this.bseCB.isSelected())) {
/*  95 */         JOptionPane.showMessageDialog(null, "At least one exchange must be selected.", null, 0);
/*     */ 
/*  99 */         return;
/*     */       }
/*     */ 
/* 103 */       if ((this.nseCB.isSelected()) && (!this.bseCB.isSelected()))
/*     */       {
/* 105 */         this.nseOnly = true;
/* 106 */         this.jd.dispose();
/*     */       }
/*     */ 
/* 110 */       if ((this.bseCB.isSelected()) && (!this.nseCB.isSelected()))
/*     */       {
/* 112 */         this.bseOnly = true;
/* 113 */         this.jd.dispose();
/*     */       }
/*     */ 
/* 117 */       if ((this.nseCB.isSelected()) && (this.bseCB.isSelected()))
/*     */       {
/* 119 */         this.nseBse = true;
/* 120 */         this.jd.dispose();
/*     */       }
/*     */ 
/*     */     }
/*     */ 
/* 127 */     if (paramActionEvent.getSource() == this.cancelButton)
/*     */     {
/* 129 */       System.exit(0);
/*     */     }
/*     */   }
/*     */ 
/*     */   public static void main(String[] paramArrayOfString)
/*     */   {
/* 138 */     Loader localLoader = new Loader();
/*     */   }
/*     */ }

/* Location:           C:\Users\Deebak\Downloads\profitindicatorsv2-05.jar
 * Qualified Name:     Loader
 * JD-Core Version:    0.6.0
 */